package com.kuang.service;

import com.kuang.pojo.Students;
import com.kuang.dao.StudentMapper;
import java.util.List;

public class StudentServiceImpl implements StudentService {

    private StudentMapper studentMapper;

    public void setStudentMapper(StudentMapper studentMapper) {this.studentMapper = studentMapper;}

    public int addStudent(Students student) {return studentMapper.addStudent(student);}

    public int deleteStudentBySno(String Sno) {return studentMapper.deleteStudentBySno(Sno);}

    public int updateStudent(Students student) {return studentMapper.updateStudent(student);}

    public Students queryStudentBySno(String Sno) {return studentMapper.queryStudentBySno(Sno);}

    public List<Students> queryAllStudent() {return studentMapper.queryAllStudent();}

}
